#include "FindAllTest.h"
#include <list>
#include <vector>
#include "common/FindAll.h"
#include "tree/Tree.h"

namespace etu {

using etu::common::find_all;

bool isOdd(const int& value) {
    return (value % 2 == 1);
}

void FindAllTest::setUp() {
    //
}

void FindAllTest::tearDown() {
    //
}

void FindAllTest::listTest() {
 /*   std::list<int> values;

    for(int i = 1; i < 10; i++) {
        values.push_back(i);
    }

    std::list<std::list<int>::iterator> odds
        = etu::find_all(values.begin(), values.end(), isOdd);
    CPPUNIT_ASSERT_EQUAL(5, (int) odds.size());*/
}

void FindAllTest::vectorTest() {
/*    std::vector<int> values;

    for(int i = 1; i < 10; i++) {
        values.push_back(i);
    }

    std::list<std::vector<int>::iterator> odds
        = etu::find_all(values.begin(), values.end(), isOdd);
    CPPUNIT_ASSERT_EQUAL(5, (int) odds.size());*/
}

void FindAllTest::treeTest() {
    // TODO
}

}
